﻿#ifndef POSITIONFEATURE3ITEM_H
#define POSITIONFEATURE3ITEM_H

#include <QGraphicsItem>
#include <QPainter>

class PositionFeature3Item : public QObject, public QGraphicsItem
{
    Q_OBJECT
    Q_INTERFACES(QGraphicsItem)
public:
    explicit PositionFeature3Item(const int level, const QStringList& machineList, const QList<QStringList>& valueList, QObject *parent = nullptr, QGraphicsItem *item = nullptr);

protected:
    // 绘图区域
    QRectF boundingRect() const;
    void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = nullptr);

private:
    // 测试级别
    int m_level;
    // 伺服机构列表
    QStringList m_machineList;
    // 模拟数据列表
    QList<QStringList> m_valueList;

};

#endif // POSITIONFEATURE3ITEM_H
